import Vue from 'vue'
import App from './App.vue'
import router from './router'
import request from './common/request.js'
import { Tabbar, TabbarItem, } from 'vant'
import { Swipe, SwipeItem, Search, } from 'vant'
import { Image as VanImage, Lazyload } from 'vant';
import { NavBar } from 'vant';
import { List } from 'vant';
import { Tab, Tabs } from 'vant';

Vue.use(Tab);
Vue.use(Tabs);

Vue.use(VanImage);
Vue.use(Lazyload);
Vue.use(Search);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(NavBar);
Vue.use(List);


Vue.config.productionTip = false
Vue.prototype.$request = request.httpRequest
// 注册时可以配置额外的选项
Vue.use(Lazyload, {
  lazyComponent: true,
});

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
